fix accessibility on XCB when running as root
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 27 Jul 2023 20:01:32 +0000 (21:01 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 27 Jul 2023 20:01:32 +0000 (21:01 +0100)
commit6354b5c5d3f1f31da02bfbe75ddb9fcfc777cded
tree17956d69a761f387250618efabaa5e49627e1583
parent341c592e6f8288693edda590c080e2ab21e6011e
fix accessibility on XCB when running as root

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=db346e711c9af505
Bug: https://bugs.debian.org/1033995
Last-Update: 2023-04-15

Accessibility actually works when running applications as root, but we
would never properly connect, since the enabledChanged signal would be
emitted from the constructor in this case. So after connecting the
signal, check the value by hand to make sure not to miss the
notification.

Only applications running as root would be affected, because all other
applications would go through the asynchronous pattern of getting the
bus address from dbus instead.

Gbp-Pq: Name a11y_root.diff
src/platformsupport/linuxaccessibility/bridge.cpp